package cuttings;

import java.io.*;

public class FileOutput
{

  FileOutput(String data) {

    FileOutputStream fos; 
    DataOutputStream dos;

    try {

      File file= new File("Playerdetails.txt");
      fos = new FileOutputStream(file,true);
      dos = new DataOutputStream(fos);
      
      dos.writeChars(data);

    } catch (IOException e) {
      e.printStackTrace();
    }

  }

}